import { Methods } from "../enums/request-methods"

const BaseApi = {
  USER: "users",
  UPLOAD: "upload"
}

export const UserApi = {
  SendSMSCode: [Methods.POST, `/${BaseApi.USER}/send/sms`],
  SignInSMS: [Methods.POST, `/${BaseApi.USER}/sign-in/sms`],
  SendEmailCode: [Methods.POST, `/${BaseApi.USER}/send/email-code`],
  SignInEmail: [Methods.POST, `/${BaseApi.USER}/sign-in/email`],
  UpdateUserById: [Methods.PUT, `/${BaseApi.USER}`],
  GetUserByToken: [Methods.GET, `/${BaseApi.USER}`]
}


export const UploadApi = {
  UploadFile: [Methods.POST, `http://8.138.182.161:8080/${BaseApi.UPLOAD}`]
}